<?php
/**
 * 题目类
 */
namespace service\vo\subject;

class Subject
{
    //id
    private int $id;
    //语向，CE.中译英，EC.英译中
    private string $lanDir;
    //难度系数
    private int $rate;
    //领域id，1.公司法，可参考配置文件
    private int $territoryId;
    //原文
    private string $sourceText;
    //译文
    private string $translationText;
    //来源
    private string $from;
    //创建者id
    private int $userId;
    //创建者类型，1.管理员。2.用户
    private int $userType;
    //添加时间
    private string $addTime;

    /**
     * @return int
     */
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @param int $id
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return string
     */
    public function getLanDir(): string
    {
        return $this->lanDir;
    }

    /**
     * @param string $lanDir
     */
    public function setLanDir(string $lanDir): void
    {
        $this->lanDir = $lanDir;
    }

    /**
     * @return int
     */
    public function getRate(): int
    {
        return $this->rate;
    }

    /**
     * @param int $rate
     */
    public function setRate(int $rate): void
    {
        $this->rate = $rate;
    }

    /**
     * @return int
     */
    public function getTerritoryId(): int
    {
        return $this->territoryId;
    }

    /**
     * @param int $territoryId
     */
    public function setTerritoryId(int $territoryId): void
    {
        $this->territoryId = $territoryId;
    }

    /**
     * @return string
     */
    public function getSourceText(): string
    {
        return $this->sourceText;
    }

    /**
     * @param string $sourceText
     */
    public function setSourceText(string $sourceText): void
    {
        $this->sourceText = $sourceText;
    }

    /**
     * @return string
     */
    public function getTranslationText(): string
    {
        return $this->translationText;
    }

    /**
     * @param string $translationText
     */
    public function setTranslationText(string $translationText): void
    {
        $this->translationText = $translationText;
    }

    /**
     * @return string
     */
    public function getFrom(): string
    {
        return $this->from;
    }

    /**
     * @param string $from
     */
    public function setFrom(string $from): void
    {
        $this->from = $from;
    }

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getUserType(): int
    {
        return $this->userType;
    }

    /**
     * @param int $userType
     */
    public function setUserType(int $userType): void
    {
        $this->userType = $userType;
    }

    /**
     * @return string
     */
    public function getAddTime(): string
    {
        return $this->addTime;
    }

    /**
     * @param string $addTime
     */
    public function setAddTime(string $addTime): void
    {
        $this->addTime = $addTime;
    }
}